package com.tfjybj.itoo.exam.provider.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.exam.entity.ExamineeEntity;
import com.tfjybj.itoo.exam.entity.StudentTeachClassEntity;
import com.tfjybj.itoo.exam.model.StudentTeachClassModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * StudentTeachClassDao接口
 * studentTeachClass表
 *
 * @author 郭满亮
 * @version 2.0.0
 * @since 2.0.0 2019-01-29 15:52:00
 */
@Repository("studentTeachClassDao")
public interface StudentTeachClassDao extends BaseMapper<StudentTeachClassEntity> {

    List<ExamineeEntity> selectStudent(String teachClassId);
    /**
     * 从上课班删除学生
     *
     * @param studentId 学生id
     * @param teachClassId 上课班Id
     * @return 删除结果
     */
    int updataTeachClassStudent(@Param("studentId") String studentId,
                                @Param("teachClassId") String teachClassId);

    List<StudentTeachClassModel> selectStudentByteachclassID(Map param);
}
